import request from '@/utils/request'
import Cookies from 'js-cookie'

// 获取搜索头门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data:data
    })
}


// 获取搜索头仓库列表
export function getStorageList(data) {
    return request({
        url: '/Stock_check/get_channel',
        method: 'post',
        data: data
    })
}

// 列表
export function getList(data, page) {
    return request({
        url: '/Transfers_accessories/select_accessories_transfer_order_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}

// 获取分页
export function getPage(data) {
    return request({
        url: '/Transfers_accessories/select_accessories_transfer_order_page',
        method: 'post',
        data: data
    })
}

// 列表
export function getinfoList(data) {
    return request({
        url: '/Transfers_accessories/select_accessories_transfer_order_detail',
        method: 'post',
        data: data
    })
}


// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/house_transfer/get_order_excel?type=${data.type}&order_id=${data.order_id}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
export function get_goods_type(data){
    return request({
        url: '/Purchase_accessories/get_goods_type',
        method: 'post',
        data: data
    })
}
